yjx.controller('navbarController', ['$rootScope', '$scope', function ($rootScope, $scope) {

        $scope.tabChange = function (index) {
            if (!$rootScope.tabCtrl["tab" + index]) {
                $rootScope.tabCtrl["tab" + index] = true;
                //console.info($rootScope.tabCtrl["tab" + index])
            }

            $rootScope.tabCtrlName = $rootScope.tabCtrlNameArr[index]
            //console.log($rootScope.tabCtrlName);

        }
        $scope.navbar = [
            {
                icon: '',
                title: '首页',
                state: ''
            },
            {
                icon: '',
                title: '产品中心',
                state: ''
            },
            {
                icon: '',
                title: '获得支持',
                state: ''
            },
            {
                icon: '',
                title: '我的',
                state: ''
            },
        ]
    }]
)